
import {  
    ConfigProvider,
    Layout,
    Input,
    InputNumber,
    Button,
    Switch,
    Radio,
    Checkbox,
    Select,
    Card,
    Form,
    Row,
    Col,
    Table,
    Tabs,
    Badge,
    Popover,
    Dropdown,
    List,
    Avatar,
    Breadcrumb,
    Steps,
    Spin,
    Menu,
    Drawer,
    Tooltip,
    Alert,
    Tag,
    Divider,
    DatePicker,
    TimePicker,
    Upload,
    Progress,
    Skeleton,
    Popconfirm,
    PageHeader,
    Result,
    Statistic,
    Descriptions,
    Empty,
    Tree,
    TreeSelect,
    notification,
    Modal,
    message,
 } from 'ant-design-vue';
import 'ant-design-vue/dist/antd.less';
import { App } from 'vue'
export const install = (app:App ):void => {
   const installArr: any[]  = [ 
    ConfigProvider,
    Layout,
    Input,
    InputNumber,
    Button,
    Switch,
    Radio,
    Checkbox,
    Select,
    Card,
    Form,
    Row,
    Col,
    Table,
    Tabs,
    Badge,
    Popover,
    Dropdown,
    List,
    Avatar,
    Breadcrumb,
    Steps,
    Spin,
    Menu,
    Drawer,
    Tooltip,
    Alert,
    Tag,
    Divider,
    DatePicker,
    TimePicker,
    Upload,
    Progress,
    Skeleton,
    Popconfirm,
    PageHeader,
    Result,
    Statistic,
    Descriptions,
    Empty,
    Tree,
    TreeSelect
]
   installArr.map(item=>{
       app.use(item)
   })
   const antedProtype: any[] = [
       {$message: message}, 
       {$notification:notification},
       {$info:Modal.info},
       {$confirm:Modal.confirm},
       {$success:Modal.success},
       {$error:Modal.error},
       {$warning:Modal.warning}
    ]
   antedProtype.map(item=>{
       app.config.globalProperties = {
           ...item
       }
   })
}
